package nc.ui.ar.m20060301;

import nc.ui.ep.dj.DjPanel;
import nc.ui.glpub.IUiPanel;
import nc.ui.glpub.UiManager;
import nc.ui.pub.FramePanel;
import nc.ui.pub.ILinkOperateable;
import nc.ui.pub.linkoperate.ILinkAdd;
import nc.ui.pub.linkoperate.ILinkAddData;
import nc.ui.pub.linkoperate.ILinkApprove;
import nc.ui.pub.linkoperate.ILinkApproveData;
import nc.ui.pub.linkoperate.ILinkMaintain;
import nc.ui.pub.linkoperate.ILinkMaintainData;
import nc.ui.pub.linkoperate.ILinkQuery;
import nc.ui.pub.linkoperate.ILinkQueryData;
import nc.vo.pub.msg.MessageVO;

public class UiManagerAr20060301 extends UiManager
  implements ILinkOperateable, ILinkApprove, ILinkQuery, ILinkAdd, ILinkMaintain
{
  private static final long serialVersionUID = 4290750874731813570L;

  public UiManagerAr20060301(FramePanel panel)
  {
    super(panel);
  }

  public void initData(MessageVO msgvo)
  {
    IUiPanel iPanel = getCurrentPanel();
    if (!(iPanel instanceof DjPanel))
      return;
    DjPanel djPanel = (DjPanel)iPanel;
    djPanel.postInit();
  }

  public void doApproveAction(ILinkApproveData approvedata)
  {
    IUiPanel iPanel = getCurrentPanel();
    if (iPanel instanceof DjPanel) {
      DjPanel djPanel = (DjPanel)iPanel;
      djPanel.doApproveAction(approvedata);
    }
  }

  public void doQueryAction(ILinkQueryData querydata)
  {
    IUiPanel iPanel = getCurrentPanel();
    if (iPanel instanceof DjPanel) {
      DjPanel djPanel = (DjPanel)iPanel;
      djPanel.doQueryAction(querydata);
    }
  }

  public void doAddAction(ILinkAddData adddata)
  {
    IUiPanel iPanel = getCurrentPanel();
    if (iPanel instanceof DjPanel) {
      DjPanel djPanel = (DjPanel)iPanel;
      djPanel.doAddAction(adddata);
    }
  }

  public void setLinkData(Object[] arg0)
  {
    IUiPanel iPanel = getCurrentPanel();
    if (iPanel instanceof DjPanel) {
      DjPanel djPanel = (DjPanel)iPanel;
      djPanel.setLinkData(arg0);
    }
  }

  public void doMaintainAction(ILinkMaintainData maintaindata) {
    IUiPanel iPanel = getCurrentPanel();
    if (iPanel instanceof DjPanel) {
      DjPanel djPanel = (DjPanel)iPanel;
      djPanel.doMaintainAction(maintaindata);
    }
  }

  public void postInit() {
    IUiPanel iPanel = getCurrentPanel();
    if (iPanel instanceof DjPanel) {
      DjPanel djPanel = (DjPanel)iPanel;
      djPanel.postInit();
    }
  }
}